package com.rs.admin.sys.org.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@TableName("org_department")
public class Department extends Model<Department> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 单位编号
     */
	@TableField("organization_id")
	private Long organizationId;
    /**
     * 简称
     */
	@TableField("jc_title")
	private String jcTitle;
    /**
     * 部门名称
     */
	@TableField("qc_title")
	private String qcTitle;
    /**
     * 上级部门
     */
	private Long pid;
    /**
     * 联系电话
     */
	private String telephone;
    /**
     * 单位负责人
     */
	private String director;
    /**
     * 负责人电话
     */
	@TableField("director_mobile")
	private String directorMobile;
    /**
     * 单位联系人
     */
	private String contact;
    /**
     * 联系人电话
     */
	@TableField("contact_mobile")
	private String contactMobile;
    /**
     * 状态  0正常 1冻结  -1 删除
     */
	private Integer status;
    /**
     * 排序
     */
	private Integer sorting;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 备注
     */
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}

	public String getJcTitle() {
		return jcTitle;
	}

	public void setJcTitle(String jcTitle) {
		this.jcTitle = jcTitle;
	}

	public String getQcTitle() {
		return qcTitle;
	}

	public void setQcTitle(String qcTitle) {
		this.qcTitle = qcTitle;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getDirectorMobile() {
		return directorMobile;
	}

	public void setDirectorMobile(String directorMobile) {
		this.directorMobile = directorMobile;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getContactMobile() {
		return contactMobile;
	}

	public void setContactMobile(String contactMobile) {
		this.contactMobile = contactMobile;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Department{" +
			", id=" + id +
			", organizationId=" + organizationId +
			", jcTitle=" + jcTitle +
			", qcTitle=" + qcTitle +
			", pid=" + pid +
			", telephone=" + telephone +
			", director=" + director +
			", directorMobile=" + directorMobile +
			", contact=" + contact +
			", contactMobile=" + contactMobile +
			", status=" + status +
			", sorting=" + sorting +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", remark=" + remark +
			"}";
	}
}
